package com.automannn.springboot.practice.applicationArguments;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.DefaultApplicationArguments;

/**
 * @author automannn
 * @time 2021/10/8 10:24
 */
public class ApplicationArgumentsTest {
    public static void main(String[] args) {
        /*xxx: spring将应用参数分为了两类*/
        ApplicationArguments applicationArguments = new DefaultApplicationArguments("aa","bb","cc","--spring.config.location=adfdf");
        System.out.println(applicationArguments.getNonOptionArgs());

        System.out.println(applicationArguments.getOptionNames());

    }
}
